//
//  ViewController.h
//  Bluetooth Chat App
//
//  Created by iD Student on 7/15/13.
//  Copyright (c) 2013 ZTBWorks. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <GameKit/GameKit.h>
#import "AppDelegate.h"
#import "ChatScreenViewController.h"

@interface ViewController: UIViewController <GKPeerPickerControllerDelegate, GKSessionDelegate, UITextFieldDelegate> {
    GKSession *currentSession;
    IBOutlet UITextField *txtMessage;
    IBOutlet UIButton *connect;
}

@property (nonatomic, retain) UITextField *txtMessage;
@property (nonatomic, retain) UIButton *connect;
@property (strong, nonatomic) IBOutlet UITextField *usernameField;

@property (strong, nonatomic) IBOutlet UILabel *userNameLabel;

-(IBAction) btnSend:(id) sender;
-(IBAction) btnConnect:(id) sender;
-(IBAction) btnDisconnect:(id) sender;

@property (readonly) AppDelegate *appDelegate;
@property (nonatomic) ChatScreenViewController *viewController;

@end